import java.util.Scanner;

class Cylinder{
    private double r = 0;
    private int h = 0;

    public double getR(double r) {
        return r;
    }

    public int getH(int h) {
        return h;
    }

    public double comBottom(double r){
        double bottomArea = 3.14 * r * r;
        return bottomArea;
    }

    public double comSide(double r,double h){
        double sideArea = 2 * 3.14 * r * h;
        return sideArea;
    }

/*    public double end{
        double (2 * comBottom())+ comSide();
    }*/
}

public class Main {
    //表面积=底面积×2+侧面积。根据几何知识，底面积=πr2，侧面积= 2πrh。
    public static void main(String[] args) {
        Scanner write = new Scanner(System.in);
        Cylinder com = new Cylinder();
/*        com.getR(write.nextDouble());
        com.getH(write.nextInt());*/
       // com.comBottom(com.getR(write.nextDouble()),com.getH(write.nextInt()));
        //System.out.println((2 * com.comBottom())+ comSide());
    }
}



        /*double r = write.nextDouble();
        int h = write.nextInt();

        double bottomArea = 3.14 * r * r;
        double sideArea = 2 * 3.14 * r * h;
        System.out.println(2 * (bottomArea) + sideArea);*/

